Espressif Systems /ESP32-P4 /SPI2 /SPI_CLOCK

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as SPI_CLOCK

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0SPI_CLKCNT_L0SPI_CLKCNT_H0SPI_CLKCNT_N0SPI_CLKDIV_PRE 0 (SPI_CLK_EQU_SYSCLK)SPI_CLK_EQU_SYSCLK

Description

SPI clock control register

Fields

SPI_CLKCNT_L

In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must be 0. Can be configured in CONF state.

SPI_CLKCNT_H

In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it must be 0. Can be configured in CONF state.

SPI_CLKCNT_N

In the master mode it is the divider of spi_clk. So spi_clk frequency is system/(spi_clkdiv_pre+1)/(spi_clkcnt_N+1). Can be configured in CONF state.

SPI_CLKDIV_PRE

In the master mode it is pre-divider of spi_clk. Can be configured in CONF state.

SPI_CLK_EQU_SYSCLK

In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from system clock. Can be configured in CONF state.

Links

() ()